package ooday01;
//学生类的测试类
public class StudentTest {
    public static void main(String[] args) {
        Student zs=new Student("张三",23,"JSD2302","N40001");//声明Student型引用zs指向一个学生对象
        zs.study();
        zs.sayHi();
        zs.playWith("李四");



        Student ls=new Student("李四",25,"JSD2302","40002");
        ls.name="李四";
        ls.age=25;
        ls.className="JSD2302";
        ls.stuId="N40002";
        ls.study();
        ls.sayHi();
        ls.playWith("张三");

        Student ww=new Student();
        ww.name="王五";
        ww.age=55;
        ww.className="JSD2303";
        ww.stuId="N400023";
        ww.study();
        ww.sayHi();
        ww.playWith("自己");



    }
}
